import { createRouter, createWebHistory } from 'vue-router';
 
import Login from '@/views/Login/Login.vue';
import Layout from '@/views/Layout/index.vue';
import device from '@/views/Device/device.vue';
import me from '@/views/Me/me.vue';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'Login',
      component: Login,
       
    },
    // 展示页面
    {
      path:'/Layout',
      component:Layout,
    children:[{
      // 设备
      path:'',
      component:device
    },
     // 个人中心
     {
      path:'/me',
      component:me
    }]
  }

]
})

export default router
